<%-- 
    Document   : inicio
    Created on : Jan 31, 2013, 4:21:07 PM
    Author     : andreth
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>


<!DOCTYPE html>
<html>
    <h1>PIO Programa de Igualdad de Oportunidades (Presencial)</h1>

    <p>
        <logic:present name="Registro">
            <logic:match name="Registro" property="rol" value="0">
                <html:form action="/ModificarInicio?method=save" >
                    <logic:present name="Incio" property="body">
                        <html:textarea name="Inicio" property="body" ></html:textarea>
                    </logic:present>
                    <logic:notPresent name="Incio" property="body">
                        <html:textarea name="Inicio" property="body"> Mensaje de Incio PIO </html:textarea>
                    </logic:notPresent>
                    <html:submit>Guardar Inicio</html:submit> 
                </html:form>
            </logic:match>
            <logic:notMatch name="Registro" property="rol" value="0">
                <logic:present name="Incio" property="body">
                    <bean:write name="Inicio" property="body" ></bean:write>
                </logic:present>
                <logic:notPresent name="Incio" property="body">
                <h3> Mensaje en Construcción </h3>
            </logic:notPresent>
        </logic:notMatch>
    </logic:present>
    <logic:notPresent name="Registro">
        <tiles:insert page="/informacionNegocio.jsp" >
        </tiles:insert>
    </logic:notPresent>     
</p>
</html>
